package com.itheima.wemedia.feign;

import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.itheima.wemedia.pojo.WmUser;

@FeignClient(name = "leadnews-wemedia",contextId = "wmuserFeign")//contextId
public interface WmUserFeign {

    @PostMapping("/api/wmUser/add")
    ResultVo<WmUser> add(@RequestBody WmUser wmUser);

    @GetMapping("/api/wmUser/{appUserId}")
    ResultVo<WmUser> getByAppUserId(@PathVariable(name = "appUserId")Integer appUserId);



}
